package com.bingo.datasecurity.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bingo.datasecurity.annotation.DesensitizedField;
import com.bingo.datasecurity.annotation.EncryptEntity;
import com.bingo.datasecurity.annotation.EncryptField;
import com.bingo.datasecurity.enums.DesensitizedMode;
import lombok.Data;

/**
 * @author bingo
 * @date 2024/2/5 16:25
 */
@EncryptEntity
@TableName("account")
@Data
public class AccountPo {


    /**
     * id
     */
    private Integer id;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    @EncryptField
    private String password;

    /**
     * email
     */
    @DesensitizedField(mode = DesensitizedMode.email)
    private String email;


}
